<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:allowtransparency="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" media="all" href="/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" media="all" href="/css/common.css"/>
    <link rel="stylesheet" type="text/css" media="all" href="/css/CaseManager.css"/>
    <link rel="stylesheet" type="text/css" media="all" href="/layui/css/layui.css"/>
    <script type="text/javascript" src="/layui/layui.all.js"></script>
    <script type="text/javascript" src="/js/jquery.min.js"></script>

</head>
<style>
    .change{
        -webkit-touch-callout: none;
        -moz-user-select: none; /*火狐*/
        -webkit-user-select: none;  /*webkit浏览器*/
        -ms-user-select: none;   /*IE10*/
        -khtml-user-select: none; /*早期浏览器*/
        user-select: none;
    }
</style>
<body>
<div id="view" class="change" style=";"></div>

</body>
<script>
    function loadPage(url) {
        window.location.href = url;
    }
</script>
<script th:inline="javascript" type="text/javascript">
    $(function () {

        var name = [[${fileName}]];
        var  result = '<iframe type="application/pdf"  style="width: 100%;height: 1000px"  allowtransparency="yes"  src="/images/'+name+'"></iframe>'
        $('#view').append(result);
        layui.use('form', function(){
            var form = layui.form;
            form.render();
        });

        var storage = window.localStorage;
        var it =localStorage.getItem("username")
        var sourseID = [[${sourseID}]];
        if (it ==null){
            storage.username = "未登陆";
        }
        $.get("/Request/UpdateRead",{"sourseID":sourseID,"username":storage.username},function (data) {

        })
    })
</script>
</html>